package com.ibm.cloud.banking.account.service;

import com.ibm.cloud.banking.annotation.PBS;
import com.ibm.cloud.banking.facade.account.IAccountFacade;
import com.ibm.cloud.banking.facade.customer.dto.CustAcctRelDTO;
import com.ibm.cloud.invoker.PbsService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;

@PBS(servNo = "PBS100003")
@Slf4j
public class GetSingleProductEffectiveAcctCntService implements PbsService<CustAcctRelDTO, Integer> {

    @Autowired
    IAccountFacade accountFacade;

    @Override
    public Integer doService(CustAcctRelDTO custAcctRelDTO) {
        return accountFacade.getSingleProductEffectiveAcctCnt(custAcctRelDTO);
    }
}
